{extend name='admin@public/content'}
{block name="content"}
<!--{if empty($list)}-->
<p class="help-block text-center well">没 有 记 录 哦！</p>
<!--{else}-->
<!-- 表单搜索 开始 -->
<form autocomplete="off" class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get">
    <div class="layui-form-item layui-inline">
        <div class="layui-input-inline">
            <input name="create_at" data-time value="{$Think.get.create_at}" placeholder="请选择时间" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-inline">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>
</form>
<script>
    window.form.render();
    $('[data-time]').map(function () {
        window.laydate.render({range: true, elem: this});
    });
</script>
<!-- 表单搜索 结束 -->
<table class="layui-table" lay-even lay-skin="line">
    <colgroup>
        <col width="20%">
        <col width="20%">
        <col width="20%">
        <col width="20%">
        <col width="20%">
    </colgroup>
    {foreach $list as $vo}
    <thead>
    <tr>
        <th class="text-left" bgcolor="#2494f2" style="color: #fff;" colspan="5">{$vo.time|datetime='Y.m.d'}</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td style="max-width:200px" class="nowrap">注册人数</td>
        <td class="nowrap">{$vo.register_total}</td>
        <td style="max-width:200px" class="nowrap">流水金额</td>
        <td class="nowrap">{$vo.total_money}</td>
        <td class="nowrap">{$vo.register_total ? round($vo.total_money / $vo.register_total, 3) : 0}</td>
    </tr>
    <tr>
        <td style="max-width:200px" class="nowrap">口红充值人数</td>
        <td class="nowrap">{$vo.khj_recharge_number}</td>
        <td style="max-width:200px" class="nowrap">口红充值金额</td>
        <td class="nowrap">{$vo.khj_recharge_money}</td>
        <td class="nowrap">{$vo.khj_recharge_number ? round($vo.khj_recharge_money / $vo.khj_recharge_number, 3) : 0}</td>
    </tr>
    <tr>
        <td style="max-width:200px" class="nowrap">口红中奖人数</td>
        <td class="nowrap">{$vo.khj_prize_number}</td>
        <td style="max-width:200px" class="nowrap">口红游戏次数</td>
        <td class="nowrap">{$vo.khj_game_number}</td>
        <td class="nowrap">{$vo.khj_game_number ? round($vo.khj_prize_number / $vo.khj_game_number, 3) : 0}</td>
    </tr>
    <tr>
        <td style="max-width:200px" class="nowrap">翻牌充值人数</td>
        <td class="nowrap">{$vo.fp_recharge_number}</td>
        <td style="max-width:200px" class="nowrap">翻牌充值金额</td>
        <td class="nowrap">{$vo.fp_recharge_money}</td>
        <td class="nowrap">{$vo.fp_recharge_number ? round($vo.fp_recharge_money / $vo.fp_recharge_number, 3) : 0}</td>
    </tr>
    <tr>
        <td style="max-width:200px" class="nowrap">小说充值人数</td>
        <td class="nowrap">{$vo.xs_recharge_number}</td>
        <td style="max-width:200px" class="nowrap">小说充值金额</td>
        <td class="nowrap">{$vo.xs_recharge_money}</td>
        <td class="nowrap">{$vo.xs_recharge_number ? round($vo.xs_recharge_money / $vo.xs_recharge_number, 3) : 0}</td>
    </tr>
    <tr>
        <td style="max-width:200px" class="nowrap">扭蛋充值人数</td>
        <td class="nowrap">{$vo.nd_recharge_number}</td>
        <td style="max-width:200px" class="nowrap">扭蛋充值金额</td>
        <td class="nowrap">{$vo.nd_recharge_money}</td>
        <td class="nowrap">{$vo.nd_recharge_number ? round($vo.nd_recharge_money / $vo.nd_recharge_number, 3) : 0}</td>
    </tr>
    </tbody>
    {/foreach}
</table>
{if isset($page)}<p>{$page|raw}</p>{/if}
<!--{/if}-->
{/block}